<template>
    <div class="nav-swiper">
        <div class="nav-swiper-top">
            <ul class="list">
                <li>HTML/CSS / html/css / css
                    <el-icon class="Icon">
                        <CaretRight />
                    </el-icon>
                </li>
                <li>HTML/CSS / html/css / css
                    <el-icon class="Icon">
                        <CaretRight />
                    </el-icon>
                </li>
                <li>HTML/CSS / html/css / css
                    <el-icon class="Icon">
                        <CaretRight />
                    </el-icon>
                </li>
                <li>HTML/CSS / html/css / css
                    <el-icon class="Icon">
                        <CaretRight />
                    </el-icon>
                </li>
                <li>HTML/CSS / html/css / css
                    <el-icon class="Icon">
                        <CaretRight />
                    </el-icon>
                </li>
                <li>HTML/CSS / html/css / css
                    <el-icon class="Icon">
                        <CaretRight />
                    </el-icon>
                </li>
                <li>HTML/CSS / html/css / css
                    <el-icon class="Icon">
                        <CaretRight />
                    </el-icon>
                </li>
                <li>HTML/CSS / html/css / css
                    <el-icon class="Icon">
                        <CaretRight />
                    </el-icon>
                </li>
                <li>HTML/CSS / html/css / css
                    <el-icon class="Icon">
                        <CaretRight />
                    </el-icon>
                </li>
            </ul>
            <div class="banner">
                <el-carousel :interval="5000" arrow="always" style="width: 100%; height: 100%">
                    <el-carousel-item v-for="item in 4" :key="item">
                        <img src="" alt="">
                    </el-carousel-item>
                </el-carousel>
            </div>
        </div>
        <ul class="nav-swiper-foot">
            <li>
                <div class="logoUrl">
                    <img src="@/assets/images/chuji.png" alt="" />
                </div>
                <div class="title">
                    <h4>初级课程</h4>
                    <p>入门课,岗位多</p>
                </div>
            </li>
            <li>
                <div class="logoUrl">
                    <img src="@/assets/images/chuji.png" alt="" />
                </div>
                <div class="title">
                    <h4>初级课程</h4>
                    <p>入门课,岗位多</p>
                </div>
            </li>
            <li>
                <div class="logoUrl">
                    <img src="@/assets/images/chuji.png" alt="" />
                </div>
                <div class="title">
                    <h4>初级课程</h4>
                    <p>入门课,岗位多</p>
                </div>
            </li>
            <li>
                <div class="logoUrl">
                    <img src="@/assets/images/chuji.png" alt="" />
                </div>
                <div class="title">
                    <h4>初级课程</h4>
                    <p>入门课,岗位多</p>
                </div>
            </li>
            <li>
                <div class="logoUrl">
                    <img src="@/assets/images/chuji.png" alt="" />
                </div>
                <div class="title">
                    <h4>初级课程</h4>
                    <p>入门课,岗位多</p>
                </div>
            </li>
        </ul>
    </div>
</template>

<script setup>
import { CaretRight } from '@element-plus/icons-vue'
import { getSlider } from '@/utils/api'

onBeforeMount(() => {
    getSlider().then(res => {
        console.log(res);
    })
    console.log('123');
})

</script>

<style lang="scss" scoped>
.nav-swiper {
    width: 1140px;
    height: 500px;
    margin: 30px auto;
    // background-color: #bfc;
    box-shadow: 0 55px 25px -25px #d3defb;
    border-radius: 8px;
    overflow: hidden;

    .nav-swiper-top {
        width: 100%;
        height: 400px;
        display: flex;

        .list {
            width: 280px;
            height: 100%;
            padding: 10px 0;
            background-color: #2b283d;
            box-sizing: border-box;
            li {
                padding: 0 10px;
                line-height: 40px;
                overflow: hidden;
                color: #fff;
                position: relative;
                .Icon {
                    // vertical-align: text-bottom;
                    position: absolute;
                    right: 5px;
                    bottom: 10px;
                }
                &:hover{
                    background: linear-gradient(90deg, rgb(63, 229, 255), transparent);
                    cursor: pointer;
                }
            }
        }

        .banner {
            width: 860px;
            height: 100%;
            // background-color: rgb(203, 177, 177);
        }
    }
    .nav-swiper-foot {
        height: 100px;
        display: flex;
        justify-content: space-around;
        li {
            width: 213px;
            height: 100%;
            background-color: #fff;
            display: flex;
            align-items: center;
            .logoUrl {
                img {
                    width: 50px;
                    height: 50px;
                    margin: 0 10px 0 30px;
                }
            }
            .title {
                h4 {
                    font-size: 18px;
                    font-weight: bold;
                }
                p {
                    font-size: 14px;
                     color: #999;
                }
            }
        }
    }
}

</style>